<?php
/**
 * Created by PhpStorm.
 * User: Guangpeng Chen
 * Date: 11-7/0007
 * Time: 15:36
 */
exit;
function raw_post($url,$data){
    $ch = curl_init();
    curl_setopt($ch, CURLOPT_POST, 1);
    curl_setopt($ch, CURLOPT_HEADER, 0);
    curl_setopt($ch, CURLOPT_URL,$url);
    curl_setopt($ch, CURLOPT_POSTFIELDS, $data);
    curl_setopt($ch, CURLOPT_RETURNTRANSFER,1);
    return curl_exec($ch);
}
//MySQL
$pdo = new PDO('mysql:dbname=myuu;host=127.0.0.1;port=3306', 'admin', 'adm*753951');
$pdo->exec('SET NAMES "UTF8"');
$data_now = date('Y-m-d H:i:s');
include dirname(__FILE__) . '/../common/func.inc.php';
include 'ProductApi.php';